<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
    <style type="text/css">
        table.gridtable {
            font-family: verdana,arial,sans-serif;
            font-size:11px;
            color:#333333;
            border-width: 1px;
            border-color: #666666;
            border-collapse: collapse;
        }
        table.gridtable th {
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #dedede;
        }
        table.gridtable td {
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #ffffff;
        }
        #y{
            width: 130px;
            height: 40px;
            cursor: pointer;
            border-radius: 3px;
            border:none;
        }
    </style>
<body>
    <div align="center">
        <table class="gridtable">
            <tr>
                <th>姓名</th><th>性别</th><th>年龄</th><th>地址</th><th>班级</th>
                <th>
                    <form action="${pageContext.request.contextPath}/html/TianJia.html" method="post">
                        <input type="submit" id="y" value="添加新同学">
                    </form>
                </th>
                <th></th>
            </tr>
            <c:forEach items="${list}" var="list">
                <tr><td>${list.name}</td><td>${list.sex}</td><td>${list.age}</td><td>${list.address}</td>
                    <td>${list.school}</td><td><a href="${pageContext.request.contextPath}/StudentServlet?action=shanchu&id=${list.id}">删除</a>
                    </td>
                    <td>
                        <a href="${pageContext.request.contextPath}/StudentServlet?action=xiugai&id1=${list.id}">修改</a>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </div>

</body>
</html>
